package com.wxx.main;

public class TestStringBuffer {

	public static void main(String[] args) {
		StringBuffer sb = new StringBuffer();
		sb.append("109a23aaadddw2asdsfertertertr");
		System.out.println("sb>>>>>append>>>>>" + sb);
		sb.deleteCharAt(2);
		System.out.println("sb>>>>>deleteCharAt>>>>>" + sb);
		sb.delete(0, 2);
		System.out.println("sb>>>>>delete>>>>>" + sb);
		sb.indexOf("1");
		System.out.println("sb>>>>>indexOf>>>>>" + sb.indexOf("1"));
		sb.insert(2, "wawa");
		System.out.println("sb>>>>>insert>>>>>" + sb);
		System.out.println("sb>>>>>capacity>>>>>" + sb.capacity());
		
		StringBuilder sbu  =  new StringBuilder();
		sbu.append("aaaaaaaaaaaaa");
		System.out.println("sbu>>>>>capacity>>>>>" + sbu.capacity());
	}
}
